package com.lujiahao.trade.user;

import com.lujiahao.trade.common.protocol.user.QueryUserReq;
import com.lujiahao.trade.common.protocol.user.QueryUserRes;
import com.lujiahao.trade.user.service.IUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
@AutoConfigureMockMvc
public class BaseTestCase {

    @Autowired
    private IUserService userService;
    @Test
    public void test() {
        QueryUserReq queryUserReq = new QueryUserReq();
        queryUserReq.setUserId(1);
        QueryUserRes queryUserRes = userService.queryUserById(queryUserReq);
        System.out.println(queryUserRes);
    }
}
